package mvc.model.inventory

class GoodsTypeRow(val row: Int, val count: Int, var lastCol: Int = 1) {
    override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (other !is GoodsTypeRow) return false

        if (row != other.row) return false
        if (count != other.count) return false

        return true
    }

    override fun hashCode(): Int {
        var result = row
        result = 31 * result + count
        return result
    }
}